<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>

<h1 class="layout">Edit System Properties</h1>

<html:form action="systemproperties.do?method=edit" method="post">
    <table class="layout">
        <logic:iterate name="systemPropertyValueActionForm" property="systemPropertyList" id="systemPropertyList">
            <html:hidden name="systemPropertyList" indexed="true" property="systemPropertyId"/>
            <html:hidden name="systemPropertyList" indexed="true" property="name"/>
            <html:hidden name="systemPropertyList" indexed="true" property="isPrivate"/>
            <html:hidden name="systemPropertyList" indexed="true" property="isEditable"/>
            <tr>
                <th class="layout"><beans:write name="systemPropertyList" property="name"/></th>
                <td class="layout">
                    <logic:equal name="systemPropertyList" property="isEditable" value="true">
                        <logic:equal name="systemPropertyList" property="isPrivate" value="false">
                            <html:text name="systemPropertyList" indexed="true" property="value" size="80"/>
                        </logic:equal>
                        <logic:notEqual name="systemPropertyList" property="isPrivate" value="false">
                            <html:password name="systemPropertyList" indexed="true" property="value" size="80"/>
                        </logic:notEqual>
                    </logic:equal>
                    <logic:notEqual name="systemPropertyList" property="isEditable" value="true">
                        <html:hidden name="systemPropertyList" indexed="true" property="value"/>
                        <beans:write name="systemPropertyList" property="value"/>
                    </logic:notEqual>
                </td>
            </tr>
        </logic:iterate>
    </table>
    <div class="buttons">
        <html:submit property="btnSubmit" value="OK"/>
        <html:cancel property="btnSubmit" value="Cancel"/>
    </div>
</html:form>
